package com.hspedu.web.json;

import com.hspedu.web.json.entity.Cat;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
public class CatHandler {
    @RequestMapping("/cat")
    @ResponseBody
    public Cat getCat() {
        Cat cat = new Cat();
        cat.setName("mimi");
        cat.setHost("tony");
        return cat;
    }
}
